home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-05-04 | 1.9 KB | 57 lines | [TEXT/ttxt] |
- Headline
-
- A very simple OpenDocâ„¢ DR2 part.
- by Jim Matthews
- Software Development, Dartmouth College
- Copyright (c) 1995, Trustees of Dartmouth College
-
- Based on HelloPart (+ Drag & Drop) by Apple Computer (Partmaker 4.0, OpenDoc
- DR2 Release).
-
- Features
-
- * Text display bounded by the part frame (see the TrueType article in develop
- 7).
- * Font menu.
- * Cut/Copy/Paste/Clear to change the text string.
- * Receives 'TEXT' drags to change the text string.
- * Receives 'TEXT' links to change the text string.
- * Multi-level Undo/Redo for all the above commands (see Bugs).
-
- Tricks
-
- * Hold down Option to turn "Link Info" into "Part Info" (when there's a link).
-
- Bugs
-
- * Font choice is not saved.
- * Undo Cut and Undo Copy do not restore the previous clipboard contents.
- * Redo Paste As does not work, instead it prints a message to Macsbug. The
- link spec appears to vanish from the clipboard between the original Paste As
- and the Redo Paste As.
- * Show Links is not implemented.
- * When there's a link the text string can not be changed (except through the
- link, or by first explicitly breaking the link).
-
- Kludges
-
- * An ODFrame * is stored in the undo action data, because the
- UndoAction()/RedoAction() methods need one to get the clipboard focus. There
- must be a better way to do that.
- * We call frame->SetDroppable() from within the Draw() method, because
- otherwise it would never be called for saved parts and drag&drop would only
- work with virgin stationery. That looks like a bug in HelloPart (+ Drag &
- Drop).
- * An abortive attempt was made at supporting links from Headline to other
- parts; it never worked and its code should be ignored.
-
- Credits
-
- Headline borrows extensively from dumbPart, a DR 1.5 part written by Joe
- Francis and Jim Matthews at the 4/8-12/95 Boston OpenDoc Coding Retreat.
- DumbPart in turn borrowed from PictPart (Orkis newer newer) from the Nice,
- France coding kitchen.
-
- E-Mail
-
- Jim.Matthews@dartmouth.edu